package mobi.hami.huapin.dao;

import java.util.List;

import mobi.hami.huapin.daobase.CrudMapper;
import mobi.hami.huapin.model.FoodSort;
import mobi.hami.huapin.model.FoodSortExample;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface FoodSortMapper   extends CrudMapper<FoodSort> {
    @Select("<script>"
            + "SELECT * FROM Food_Sort  where level=#{level}"
            + "</script>")
     List<FoodSort> getLevelList(int level);
    @Delete("<script>"
            + "delete  FROM Food_Sort  where id in(#{level})"
            + "</script>")
    int deleteTree(String ids );



}